#include <iostream>


/**
 * 
 * 小黑当裁判
 * 
 */
int main(){

    int n;
    std::cin >> n;

    int gewei = n % 10;
    int shiwei = (int)n/10;

    if (gewei == shiwei){
        std::cout << "win";
    }else{
        std::cout << "lose";
    }

    return 0;
}